package com.itheima.mapper;


import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface OrdersettingMapper {

    //  根据预约日期查询预约设置数据
    long findCountByOrderDate(Date orderDate);

    // 根据预约日期修改预约设置数据
    void editNumberByOrderDate(OrderSetting orderSetting);

    // 添加预约设置数据
    void add(OrderSetting orderSetting);

    // 根据当前月份查询预约设置数据
    List<OrderSetting> getOrderSettingByMonth(Map map);
}
